#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_acceptshutdown.h"
#include <QTcpSocket>
#include <QTimer>
#include <QByteArray>
#include <QProcess>
#include <QJsonObject>
#include <QJsonDocument>
#include <QTcpServer>
#include <QDebug>
class acceptshutdown : public QMainWindow
{
    Q_OBJECT

public:
    acceptshutdown(QWidget *parent = nullptr);
    ~acceptshutdown();

    
    void sendMessageToClient(bool);
    void shutDownComputer(QString);


private:
    Ui::acceptshutdownClass ui;
    QTcpSocket* server=nullptr;
    QTimer* timer;
    QTcpServer* tcp;

private slots:
    void netDataReceived();


};
